﻿using System.Web;

namespace Common.Web.Share
{
    public class Membership
    {
        private static string currentUser = string.Empty;
        public static string CurrentUser
        {
            get
            {
                if (HttpContext.Current != null)
                    return HttpContext.Current.User.Identity.Name.ToUpper();

                if (!string.IsNullOrEmpty(currentUser))
                    return currentUser;
                return string.Empty;
            }
        }
    }
}
